script_enemy_main {
 let pet = 0;
 let angle = rand(0, 360);
 let row = 0;

 @Initialize {
  SetLife(500);
  SetInvincibility(30);

  LoadGraphic(enemy2);
  SetTexture(enemy2);
  SetGraphicRect(0, 0, 32, 32);
 }

 @MainLoop {
  SetCollisionA(GetX, GetY, 24);
  SetCollisionB(GetX, GetY, 16);

  pet += 1;
  if(pet == 17) {
   loop(75) {
    PlaySE(shotSE);

    CreateShot01(GetX, GetY, 4, angle + row, BLUE02, 3);
    angle += 35;
   }
   row += rand(1, 13);
   pet = 0;
  }

 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  loop(10) {
   CreateItem(ITEM_SCORE, rand(GetClipMinX + 30, GetClipMaxX - 30), rand(GetCenterY - 120, GetCenterY));
  }
 }
#include_function ".\ϐW.txt"
#include_function ".\functions.txt"
}